import axios from './request'
import config from './config'

/**
 * 上传文件(可查看)
 * @param {*} data 
 * @returns 
 */
export const UploadLocal = (data) => {
    return axios.post(`/upload/local`,data)
}

/**
 * 上传文件(可下载)
 * @param {*} data 
 * @returns 
 */
export const UploadOss = (data) => {
    return axios.post(config.baseURL, data)
}